import request from '@/utils/request';

export async function getMaintenanceInfoByPage (params: any) {
    return request('/api/device/getMaintenanceInfoByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addMaintenanceInfo (params: any) {
    return request('/api/device/addMaintenanceInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateMaintenanceInfo (params: any) {
    return request('/api/device/updateMaintenanceInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delMaintenanceInfo (params: any) {
    return request('/api/device/delMaintenanceInfo', {
    method: 'POST',
    data: params,
  });
}


export async function exportMaintenanceInfo(params: any) {
    return request('/api/device/exportMaintenanceInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getMaintenanceInfoByPage, addMaintenanceInfo, updateMaintenanceInfo, delMaintenanceInfo, exportMaintenanceInfo }
